﻿namespace SBlogCore.EventBus.CrossProcessEventBus
{
    public interface IEventBus
    {
        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="eventName">事件名称</param>
        /// <param name="eventData">事件数据</param>
        Task Publish(string eventName, string eventData);
        Task Publish(string eventName, object?[]? eventData);
    }
}
